package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论管理对象 comments
 * 
 * @author ruoyi
 * @date 2024-01-04
 */
public class Comments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论编号 */
    private Long discussId;

    /** 评论所属民宿编号 */
    @Excel(name = "评论所属民宿编号")
    private Long homestayId;

    /** 评论类型 */
    @Excel(name = "评论类型")
    private Long discussType;

    /** 评论对象编号 */
    @Excel(name = "评论对象编号")
    private Long objectId;

    /** 评论用户账号 */
    @Excel(name = "评论用户账号")
    private String userid;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String discussContent;

    /** 父级评论编号 */
    @Excel(name = "父级评论编号")
    private Long parentDiscussId;

    /** 子评论数 */
    @Excel(name = "子评论数")
    private Long replyNum;

    /** 用户类型 */
    @Excel(name = "用户类型")
    private Long userType;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date discussTime;

    public void setDiscussId(Long discussId) 
    {
        this.discussId = discussId;
    }

    public Long getDiscussId() 
    {
        return discussId;
    }
    public void setHomestayId(Long homestayId) 
    {
        this.homestayId = homestayId;
    }

    public Long getHomestayId() 
    {
        return homestayId;
    }
    public void setDiscussType(Long discussType) 
    {
        this.discussType = discussType;
    }

    public Long getDiscussType() 
    {
        return discussType;
    }
    public void setObjectId(Long objectId) 
    {
        this.objectId = objectId;
    }

    public Long getObjectId() 
    {
        return objectId;
    }
    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setDiscussContent(String discussContent) 
    {
        this.discussContent = discussContent;
    }

    public String getDiscussContent() 
    {
        return discussContent;
    }
    public void setParentDiscussId(Long parentDiscussId) 
    {
        this.parentDiscussId = parentDiscussId;
    }

    public Long getParentDiscussId() 
    {
        return parentDiscussId;
    }
    public void setReplyNum(Long replyNum) 
    {
        this.replyNum = replyNum;
    }

    public Long getReplyNum() 
    {
        return replyNum;
    }
    public void setUserType(Long userType) 
    {
        this.userType = userType;
    }

    public Long getUserType() 
    {
        return userType;
    }
    public void setDiscussTime(Date discussTime) 
    {
        this.discussTime = discussTime;
    }

    public Date getDiscussTime() 
    {
        return discussTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("discussId", getDiscussId())
            .append("homestayId", getHomestayId())
            .append("discussType", getDiscussType())
            .append("objectId", getObjectId())
            .append("userid", getUserid())
            .append("discussContent", getDiscussContent())
            .append("parentDiscussId", getParentDiscussId())
            .append("replyNum", getReplyNum())
            .append("userType", getUserType())
            .append("discussTime", getDiscussTime())
            .toString();
    }
}
